package com.yohann.eduservice.client;

import com.yohann.commonutils.result.R;
import com.yohann.eduservice.client.impl.VodClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * feign接口
 * </p>
 *
 * @author Yohann
 * @since 2020/8/11
 */
@FeignClient("order-service")
@Component
public interface OrderClient {
    /**
     * 查询用户课程购买状态
     * @param courseId
     * @param memberId
     * @return
     */
    @GetMapping("/order-service/order/isBuyCourse/{courseId}/{memberId}")
    public boolean isBuyCourse(@PathVariable("courseId") String courseId, @PathVariable("memberId") String memberId);
}
